package com.example.auth.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@ApiModel(value = "Exam表")
@TableName("exam")
@EqualsAndHashCode(callSuper = true)
public class Exam extends Model<Exam> {

    @ApiModelProperty(value = "主键ID",hidden = true)
    @TableId
    @JsonIgnore
    private long id;

    @TableField(value = "name")
    @ApiModelProperty(value = "用户名称")
    private String name;

    @TableField(value = "sex")
    @ApiModelProperty(value = "用户性别")
    private String sex;

    @TableField(value = "age")
    @ApiModelProperty(value = "用户年龄")
    private String age;

}
